import 'package:fluro/fluro.dart';
import 'package:sk_base_example/app.dart';
import 'package:sk_base_example/page/my_page.dart';

/**
 *
 * @ProjectName:    sk_base
 * @Package:        example.lib.router
 * @ClassName:      test_router
 * @Description:    dart文件作用
 * @Author:         孙浩
 * @CreateDate:     5/22/21 4:01 PM
 */
class TestRouter {
  static const Test2Page = "/Test2Page";

  static void initRouter() {
    AppStaticData.fluroRouter.define(Test2Page,
        handler: Handler(handlerFunc: (ctx, params) {
      return MyPage(keyMap: ctx.settings.arguments);
    }));
  }
}
